import { User } from 'src/user/entities/user.entity';
import {
  Column,
  CreateDateColumn,
  Entity,
  JoinColumn,
  ManyToOne,
  PrimaryGeneratedColumn,
} from 'typeorm';
@Entity()
export class Order {
  @PrimaryGeneratedColumn()
  id: number;
  @Column()
  name: string;
  @Column()
  cover: string;
  @Column()
  price: number;
  @Column({ nullable: true })
  start: string;
  @Column({ nullable: true })
  end: string;
  @Column()
  type: number;
  @Column({ name: 'user_name' })
  userName: string;
  @Column()
  number: string;
  @Column({ nullable: true })
  tips: string;
  @Column({ default: 1 })
  status: number;
  @Column({ nullable: true })
  roomId: number;
  @Column({ name: 'user_id' })
  userId: number;
  @CreateDateColumn({ name: 'create_time' })
  createTime: Date;
}
